package JavaSEAdvance.day02_interface.d024_homework;

/**
 * @author Xiao
 * @date 2021/7/16
 */
public class Frog extends Animal implements SwimmingInter{
    /**
     * 5.定义青蛙类:frog
     * 		行为:
     * 			吃饭(吃虫子)和 游泳(蛙泳)
     */
    @Override
    public void eat() {
        System.out.println("青蛙吃小虫");
    }

    @Override
    public void swimming() {
        System.out.println("青蛙会蛙泳");
    }
}
